<#assign content>
<div class="right_col" role="main">
    <div class="">
        <div class="page-title">
            <div class="title_left">
                <h3>
                    <small><strong></strong></small>
                </h3>
            </div>
            <div class="title_right">
                <#--<div class="col-md-4 col-sm-12 col-xs-12 form-group pull-right">
                    <div class="input-group" style="float: right">
                        <button id="submit" type="button" class="btn btn-success">搜索</button>
                        <button id="clean" type="button" class="btn btn-primary">清空条件</button>
                    </div>
                </div>
                <div class="col-md-3 col-sm-12 col-xs-12 form-group pull-right">
                    <div class="input-group">
                        <input type="text" name="serialnum" class="form-control" placeholder="设备号">
                    </div>
                </div>
                <div class="col-md-3 col-sm-12 col-xs-12 form-group pull-right">
                    <div class="input-group">
                        <input type="text" name="cardnum" class="form-control" maxlength="7" placeholder="车牌号">
                    </div>
                </div>-->
            </div>
        </div>
        <div class="clearfix"></div>
        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_content">
                        <div id="allmap" style="width: 100%;height: 700px"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</#assign>
<#include "./_inc/layout.ftl" />
    <script type="text/javascript">
        // 百度地图API功能
        /*var map = new BMap.Map("allmap"); // 创建地图实例
        var point = new BMap.Point(113.335345, 22.772715); // 创建点坐标
        var options = {
            renderOptions: {
                map: map
            },
            onSearchComplete: function(results) {
//                alert('Search Completed');
                //可添加自定义回调函数
            }
        };
        var localSearch = new BMap.LocalSearch(map, options);
        map.addEventListener("load", function() {
            var circle = new BMap.Circle(point, 2000, {
                fillColor: "blue",
                strokeWeight: 1,
                fillOpacity: 0.3,
                strokeOpacity: 0.3
            });
            map.addOverlay(new BMap.Marker(point));
            map.addOverlay(circle);
            localSearch.searchNearby('奶茶', point, 2000, {
                customData: {
                    geotableId: 185565
                }
            });
        });
        map.centerAndZoom(point, 12); // 初始化地图，设置中心点坐标和地图级别
        map.enableScrollWheelZoom();
        map.addControl(new BMap.NavigationControl()); //添加默认缩放平移控件*/
    </script>
